package com.bkitmobile.kesu.appengine.storingdata.server.entity;

import java.io.Serializable;
import java.util.Date;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

public class CommentsLocation implements Serializable{
	private Key user;
	private Text comment;
	private String idUser;
	private Date date;
	public CommentsLocation(Key user, String cmt,String id)
	{
		this.user = user;
		this.comment = new Text(cmt);
		this.setIdUser(id);
		setDate(new Date());
	}
	public void setUser(Key user) {
		this.user = user;
	}
	public Key getUser() {
		return user;
	}
	public void setComment(String comment) {
		this.comment = new Text(comment);
	}
	public String getComment() {
		return comment.getValue();
	}
	public void setIdUser(String idUser) {
		this.idUser = idUser;
	}
	public String getIdUser() {
		return idUser;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Date getDate() {
		return date;
	}
	
}
